import {
    DIC
} from '@/const/dic';
import {
    timeFormatter
} from '../formatter';
export const shopStoreTableOption = {
    border: true,
    index: true,
    selection: true,
    calcHeight: 380,
    columnBtn: false,
    searchClearable: false,
    selectClearBtn: false,
    searchResetBtn: false,
    height: "auto",
    menu: true,
    menuAlign: "center",
    searchBtn: true,
    labelWidth: 120,
    refreshBtn: true,
    tip: false,
    addBtn: true,
    dialogWidth: '800px',
    dialogHeight: 'auto',
    menuWidth: 180,
    editBtn: true,
    viewBtn: false,
    delBtn: true,
    column: [{
            "label": "门店名称",
            "prop": "Title",
            "search": true,
            "type": "text",
            "fixed": true,
            "width": "200",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入门店名称",
                "trigger": "blur"
            }]
        },
        {
            "label": "所属商家",
            "prop": "ShopId",
            "search": false,
            "type": "select",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请选择所属商家",
                "trigger": "blur"
            }]
        },
        {
            "label": "经度",
            "prop": "Longitude",
            "search": false,
            "type": "number",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入经度",
                "trigger": "blur"
            }]
        },
        {
            "label": "纬度",
            "prop": "Latitude",
            "search": false,
            "type": "number",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入纬度",
                "trigger": "blur"
            }]
        },

        {
            "label": "门店图片",
            "prop": "ImgSrcs",
            "search": false,
            "type": "upload",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "listType": "picture-img",
            "showFileList": false,
            "action": "/upload/image",
            "tip": "只能上传jpg/png文件，且不超过500kb",
            "rules": [{
                "required": true,
                "message": "请输入门店图片",
                "trigger": "blur"
            }]
        },
        {
            "label": "营业时间",
            "prop": "Worktime",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入营业时间",
                "trigger": "blur"
            }]
        },
        {
            "label": "门店服务",
            "prop": "Services",
            "search": true,
            "type": "checkbox",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请选择门店服务",
                "trigger": "blur"
            }]
        },
        {
            "label": "用户须知",
            "prop": "Notice",
            "search": false,
            "type": "textarea",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "hide": true,
            "rules": [{
                "required": true,
                "message": "请输入用户须知",
                "trigger": "blur"
            }]
        },
        {
            "label": "状态",
            "prop": "Status",
            "search": true,
            "type": "tag",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请选择状态",
                "trigger": "blur"
            }],
            "placeholder": "请选择状态",
            "dicData": DIC["shopStoreStatusDic"]
        },
        {
            "label": "地理位置",
            "prop": "Address",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "200",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入地理位置",
                "trigger": "blur"
            }]
        },
        {
            "label": "联系电话",
            "prop": "Telephone",
            "search": true,
            "type": "text",
            "fixed": false,
            "width": "160",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入联系电话",
                "trigger": "blur"
            }]
        },
        {
            "label": "创建时间",
            "prop": "CreateTime",
            "search": false,
            "type": "datetime",
            "fixed": false,
            "width": "160",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": false
        },
        {
            "label": "修改时间",
            "prop": "ModifyTime",
            "search": false,
            "type": "datetime",
            "fixed": false,
            "width": "160",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": false
        }
    ]
};
